package com.xiyu.service.vo.customer.info.baseVO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import jakarta.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import static com.xiyu.service.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import java.time.LocalDateTime;

/**
 * 客户信息 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class CustomerInfoBase {

    @Schema(description = "客户编号")
    @Size(max = 50, message = "客户编号长度不能超过50")
    private String customerNo;

    @Schema(description = "名称")
    @Size(max = 50, message = "名称长度不能超过50")
    private String name;

    @Schema(description = "公司主图片")
    @Size(max = 1024, message = "公司主图片长度不能超过1024")
    private String mainImageUrl;

    @Schema(description = "来源")
    @Range(max = 100000000, message = "来源最大不能超过100000000")
    private Long source;

    @Schema(description = "等级")
    private Long grade;

    @Schema(description = "阶段")
    private Long stage;

    @Schema(description = "状态")
    private Long state;

    @Schema(description = "所属人")
    private Long ownerId;

    @Schema(description = "国家")
    private Long countryId;

    @Schema(description = "省")
    private Long provinceId;

    @Schema(description = "市")
    private Long cityId;

    @Schema(description = "区")
    private Long districtId;

    @Schema(description = "地址")
    @Size(max = 255, message = "地址长度不能超过255")
    private String address;

    @Schema(description = "所属部门")
    private Long deptId;

    @Schema(description = "自定义字段1")
    @Size(max = 50, message = "自定义字段1长度不能超过50")
    private String customField1;

    @Schema(description = "自定义字段2")
    @Size(max = 50, message = "自定义字段2长度不能超过50")
    private String customField2;

    @Schema(description = "自定义字段3")
    @Size(max = 50, message = "自定义字段3长度不能超过50")
    private String customField3;

    @Schema(description = "自定义字段4")
    @Size(max = 50, message = "自定义字段4长度不能超过50")
    private String customField4;

    @Schema(description = "自定义字段5")
    @Size(max = 50, message = "自定义字段5长度不能超过50")
    private String customField5;

    @Schema(description = "自定义字段6")
    @Size(max = 50, message = "自定义字段6长度不能超过50")
    private String customField6;

    @Schema(description = "自定义字段7")
    @Size(max = 50, message = "自定义字段7长度不能超过50")
    private String customField7;

    @Schema(description = "自定义字段8")
    @Size(max = 50, message = "自定义字段8长度不能超过50")
    private String customField8;

    @Schema(description = "自定义字段9")
    @Size(max = 50, message = "自定义字段9长度不能超过50")
    private String customField9;

    @Schema(description = "自定义字段10")
    @Size(max = 50, message = "自定义字段10长度不能超过50")
    private String customField10;

    @Schema(description = "自定义字段11")
    @Size(max = 50, message = "自定义字段11长度不能超过50")
    private String customField11;

    @Schema(description = "自定义字段12")
    @Size(max = 50, message = "自定义字段12长度不能超过50")
    private String customField12;

    @Schema(description = "自定义字段13")
    @Size(max = 50, message = "自定义字段13长度不能超过50")
    private String customField13;

    @Schema(description = "自定义字段14")
    @Size(max = 50, message = "自定义字段14长度不能超过50")
    private String customField14;

    @Schema(description = "自定义字段15")
    @Size(max = 50, message = "自定义字段15长度不能超过50")
    private String customField15;

    @Schema(description = "自定义字段16")
    @Size(max = 50, message = "自定义字段16长度不能超过50")
    private String customField16;

    @Schema(description = "自定义字段17")
    @Size(max = 50, message = "自定义字段17长度不能超过50")
    private String customField17;

    @Schema(description = "自定义字段18")
    @Size(max = 50, message = "自定义字段18长度不能超过50")
    private String customField18;

    @Schema(description = "自定义字段19")
    @Size(max = 50, message = "自定义字段19长度不能超过50")
    private String customField19;

    @Schema(description = "自定义字段20")
    @Size(max = 50, message = "自定义字段20长度不能超过50")
    private String customField20;

    @Schema(description = "主联系人ID")
    private Long mainContactId;

    @Schema(description = "是否回收")
    private Boolean isRecycle;

    @Schema(description = "是否掉入公海")
    private Boolean isFallPool;

    @Schema(description = "掉入公海时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime fallPoolTime;

    @Schema(description = "上次跟进时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime lastFollowTime;

    @Schema(description = "上次发邮件时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime lastSendMailTime;

    @Schema(description = "调入公海原因")
    @Size(max = 255, message = "调入公海原因长度不能超过255")
    private String fallPoolReason;

    @Schema(description = "即将掉入公海时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime comingFallPoolTime;

    @Schema(description = "即将掉入公海规则ID")
    private Long comingFallPoolRuleId;

    @Schema(description = "简称")
    @Size(max = 50, message = "简称长度不能超过50")
    private String shortName;

}
